package com.zhou.common.template.project.excel.vo;

import cn.afterturn.easypoi.excel.annotation.Excel;
import cn.afterturn.easypoi.excel.annotation.ExcelIgnore;
import cn.afterturn.easypoi.handler.inter.IExcelModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotEmpty;
import javax.validation.constraints.NotNull;

@Data
public class ExportAddressListUserInfoVo implements IExcelModel {

    @ExcelIgnore
    private Integer lineNumber;

    @NotEmpty
    @Excel(name = "*测试级联下拉第一列", width = 15)
    @ApiModelProperty(value = "测试级联下拉第一列", position = 3)
    private String name1;

    @NotEmpty
    @Excel(name = "*测试级联下拉第二列", width = 15)
    @ApiModelProperty(value = "测试级联下拉第二列", position = 3)
    private String name2;

    @NotEmpty
    @Excel(name = "*姓名", width = 15)
    @ApiModelProperty(value = "姓名", position = 3)
    private String name;

    @NotNull
    @Excel(name = "*性别", replace = {"男_0", "女_1", "未知_2"}, addressList = true, width = 15)
    @ApiModelProperty(value = "性别;（0男 1女 2未知）", position = 4)
    private Integer sex;

    @NotEmpty
    @Excel(name = "*联系电话", width = 15)
    @ApiModelProperty(value = "联系电话", position = 5)
    private String contactPhone;

    @NotEmpty
    @Excel(name = "*所属组织", dict = "dept", addressList = true, width = 15)
    @ApiModelProperty(value = "所属组织", position = 6)
    private String deptId;

    @NotEmpty
    @Excel(name = "*职级", dict = "gov_res_rank", addressList = true, width = 15)
    @ApiModelProperty(value = "职级", position = 7)
    private String relatedFunction;

    private String errorMsg;
}
